﻿using MediatR;
using PublicCommon;
using System.ComponentModel.DataAnnotations;

namespace T_Rbac_APi.Application.Command.Operator
{
    public class OperatorAddCommand : Audit, IRequest<int>
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Oid { get; set; }
        /// <summary>
        /// 用户编号
        /// </summary>
        public string? Onumber { get; set; }
        /// <summary>
        /// 所属公司    
        /// </summary>
        public string? Pbusiness { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string? Oname { get; set; }
        /// <summary>
        /// 分配角色
        /// </summary>
        public int Orid { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string? Orname { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? Opwd { get; set; }
        /// <summary>
        /// 手机电话
        /// </summary>
        public string? Ophone { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Ostate { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public string? Odname { get; set; }
    }
}
